SRCS	:= hello.cpp class_test.cpp
TARGETS	:= $(basename $(SRCS))

all: $(TARGETS)

$(TARGETS): $(SRCS)
	$(CXX) $(addsuffix .cpp, $@) -o $@

clean:
	rm -rf $(TARGETS) *.o *.bak

.PHONY:
	all clean $(TARGETS)
